IMAGE_REPO=registry.cn-chengdu.aliyuncs.com/mrjnamei/ip

ip: clear
	@go build -o ip main.go

clear:
	@rm -rf ip
	@docker rmi $(IMAGE_REPO)

.PHONY: build-image
build-image:
	@docker build -t $(IMAGE_REPO) .

.PHONY: push-image
push-image:
	@docker push $(IMAGE_REPO)